﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="RoomBookSrhForm.aspx.cs" Inherits="App_Input_RoomBookSrhForm" Title="入住登记" %>
<%@ Import Namespace="Shpm.App.Input.Bean" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<asp:Panel ID="PanelNavigate" runat="server" />
    <table width="60%">
        <tr>
            <td>
                <table class="table_border_line">
                    <tr>
                        <td align="left" colspan="4">
                            <script language="javascript">
                                (new TitleBar('SearchBar', '检索条件')).showBar();
                            </script>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 5%; background:#ffffff"></td>
                        <td style="width: 15%; background:#ffffff" class="list_data_bg_left" nowrap>房间状态：</td>
                        <td style="width: 75%; background:#ffffff" align="left">
                            <asp:DropDownList ID="lstRoomStatus" runat="server" Width="90px">
                            </asp:DropDownList></td>
                        <td style="width: 5%; background:#ffffff"></td>
                    </tr>
                    <tr>
                        <td style="background:#ffffff"></td>
                        <td style="background:#ffffff" class="list_data_bg_left" nowrap>楼号：</td>
                        <td align="left" style="background:#ffffff">
                            <asp:DropDownList ID="lstBuildingId" runat="server" Width="90px">
                            </asp:DropDownList></td>
                        <td align="right" style="background:#ffffff"></td>
                    </tr>
                    <tr>
                        <td style="background:#ffffff"></td>
                        <td style="background:#ffffff" class="list_data_bg_left" nowrap>房型：</td>
                        <td align="left" style="background:#ffffff">
                            <asp:DropDownList ID="lstRoomType" runat="server" Width="90px">
                            </asp:DropDownList></td>
                        <td align="right" style="background:#ffffff"></td>
                    </tr>
                    <tr>
                        <td style="background:#ffffff"></td>
                        <td align="left" style="background:#ffffff" class="list_data_bg_left" nowrap>房间编号：</td>
                        <td align="left" style="background:#ffffff">
                            <asp:TextBox ID="txtRoomId" runat="server" Width="85px" MaxLength="6"></asp:TextBox></td>
                        <td align="right" style="background:#ffffff"></td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="center">&nbsp;<asp:Button ID="btnSrh" runat="server" Text="  检 索  " CssClass="button"
                OnClick="btnSrh_Click" />&nbsp;</td>
        </tr>
    </table>
    <br />
    <div id="tableResult">
        <table id="tblResult" width="80%" runat="server">
            <tr>
                <td align="left">
                    <script language="javascript">
                        (new TitleBar('SearchBar', '检索结果')).showBar();
                    </script>
                </td>
            </tr>
            <tr style="">
                <td>
                    <asp:GridView ID="viewSrhRst" runat="server" AllowPaging="True"
                        AutoGenerateColumns="False" CssClass="GridView_table" DataKeyNames="ApartmentNo,ShowStatusChar"
                        OnRowCommand="viewSrhRst_RowCommand" OnPageIndexChanging="viewSrhRst_PageIndexChanging"
                        OnRowDataBound="viewSrhRst_RowDataBound">
                        <Columns>
                            <asp:BoundField HeaderText="房间编号" DataField="ApartmentNo" Visible="False">
                                <HeaderStyle Width="0px" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_left" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="房间状态" DataField="ShowStatusChar">
                                <ItemStyle CssClass="GridView_item_center" />
                                <HeaderStyle Width="15%" CssClass="GridView_head_grayblue" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="楼号" DataField="BuildingNo">
                                <ItemStyle CssClass="GridView_item_left" />
                                <HeaderStyle Width="10%" CssClass="GridView_head_grayblue" />
                            </asp:BoundField>
                            <asp:BoundField DataField="RoomNo" HeaderText="房号">
                                <HeaderStyle Width="10%" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_left" />
                            </asp:BoundField>
                            <asp:BoundField DataField="ModleChar" HeaderText="房型">
                                <HeaderStyle Width="10%" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_left" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Location" HeaderText="坐落">
                                <ItemStyle CssClass="GridView_item_left" />
                                <HeaderStyle Width="15%" CssClass="GridView_head_grayblue" />
                            </asp:BoundField>
                            <asp:ButtonField ButtonType="Image" CommandName="details" HeaderText="详细" Text="详细"
                                ImageUrl="~/images/info.gif">
                                <ItemStyle CssClass="GridView_item_center" />
                                <HeaderStyle Width="5%" CssClass="GridView_head_grayblue" />
                            </asp:ButtonField>
                            <asp:TemplateField HeaderText="操作">
                                <ItemTemplate>
                                    <asp:LinkButton ID="LinkButton1" runat="server" CommandName="IN1" Text="预入" OnCommand="LinkButton_Command"
                                        CommandArgument="<%# ((RoomBookApartBean)Container.DataItem).ApartmentNo %>"></asp:LinkButton>&nbsp;
                                    <asp:LinkButton ID="LinkButton2" runat="server" CommandName="IN2" Text="撤预" OnCommand="LinkButton_Command"
                                        CommandArgument="<%# ((RoomBookApartBean)Container.DataItem).ApartmentNo %>"></asp:LinkButton>&nbsp;
                                    <asp:LinkButton ID="LinkButton3" runat="server" CommandName="IN3" Text="入住" OnCommand="LinkButton_Command"
                                        CommandArgument="<%# ((RoomBookApartBean)Container.DataItem).ApartmentNo %>"></asp:LinkButton>&nbsp;
                                    <asp:LinkButton ID="LinkButton4" runat="server" CommandName="IN4" Text="退房" OnCommand="LinkButton_Command"
                                        CommandArgument="<%# ((RoomBookApartBean)Container.DataItem).ApartmentNo %>"></asp:LinkButton>                                                              
                                </ItemTemplate>
                                <ItemStyle CssClass="GridView_item_center" />
                                <HeaderStyle CssClass="GridView_head_grayblue" />
                            </asp:TemplateField>
                        </Columns>
                        <PagerSettings Mode="NumericFirstLast" />
                        <PagerStyle HorizontalAlign="Right" BackColor="Lime" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
            </tr>
        </table>

    </div>    
</asp:Content>
